<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header">月子中心-周边配套</head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input type="hidden" id="baseId" name="baseId" th:value="${baseId}">

                        <input type="hidden" name="checkedAmenityIds" th:value="${checkedAmenityIds}" id="checkedAmenityIds">
                        <input type="hidden" name="amenityIds" id="amenityIds">

                        <input type="hidden" name="bizType" value="CENTER"> <!-- enum -->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">社区配套：</label>
                            <div class="col-sm-8">
                                <label th:each="amenity:${communityList}" class="checkbox-inline">
                                    <input name="amenity" type="checkbox" th:value="${amenity.id}"
                                           th:text="${amenity.name}">
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">别墅设施：</label>
                            <div class="col-sm-8">
                                <label th:each="amenity:${villaFacilityList}" class="checkbox-inline">
                                    <input name="amenity" type="checkbox" th:value="${amenity.id}"
                                           th:text="${amenity.name}">
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">房间设施：</label>
                            <div class="col-sm-8">
                                <label th:each="amenity:${roomFacilityList}" class="checkbox-inline">
                                    <input name="amenity" type="checkbox" th:value="${amenity.id}"
                                           th:text="${amenity.name}">
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">婴儿房设施：</label>
                            <div class="col-sm-8">
                                <label th:each="amenity:${babyRoomList}" class="checkbox-inline">
                                    <input name="amenity" type="checkbox" th:value="${amenity.id}"
                                           th:text="${amenity.name}">
                                </label>
                            </div>
                        </div>


                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">周边(编辑未实现)</label>
                            <div class="col-sm-8">

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label"></label>
                            <div class="col-sm-8">

                                <div class="row" id="addDiv">
                                    <div class="col-sm-12">
                                        <div class="ibox float-e-margins">
                                            <div class="ibox-content">
                                                <table class="table table-bordered">
                                                    <thead>
                                                    <tr>
                                                        <th>类型</th>
                                                        <th>项目</th>
                                                        <th>车程(分钟)</th>
                                                        <th>新增</th>
                                                        <th>删除</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody class="itemId_1">
                                                    <tr>
                                                        <td>
                                                            <select class="form-control m-b" name="roundTypeId">
                                                                <option value="1">商场</option>
                                                                <option value="2">医院</option>
                                                                <option value="3">餐厅</option>
                                                                <option value="4">景点</option>
                                                            </select>
                                                        </td>
                                                        <td>
                                                            <input name="roundName" class="form-control" type="text">
                                                        </td>
                                                        <td>
                                                            <input name="autoDuration" class="form-control" type="text">
                                                        </td>

                                                       <td>
                                                            <button type="button" class="btn btn-primary" onclick="appendRow(1)">新增</button>
                                                        </td>
                                                        <td>
                                                            <button type="button" class="btn btn-danger" onclick="removeRow(this)">删除</button>
                                                        </td>
                                                    </tr>
                                                    </tbody>
                                                </table>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!-- update
                                <div class="row" id="updateDiv">
                                    <div class="col-sm-12">
                                        <div class="ibox float-e-margins">
                                            <div class="ibox-content">
                                                <table class="table table-bordered">
                                                    <thead>
                                                    <tr>
                                                        <th>类型</th>
                                                        <th>项目</th>
                                                        <th>车程(分钟)</th>
                                                        <th>新增</th>
                                                        <th>删除</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody class="itemId_1">
                                                    <tr>
                                                        <td>
                                                            <select class="form-control m-b" name="roundTypeId">
                                                                <option value="1">商场</option>
                                                                <option value="2">医院</option>
                                                                <option value="3">餐厅</option>
                                                                <option value="4">景点</option>
                                                            </select>
                                                        </td>
                                                        <td>
                                                            <input name="roundName" class="form-control" type="text">
                                                        </td>
                                                        <td>
                                                            <input name="autoDuration" class="form-control" type="text">
                                                        </td>

                                                        <td>
                                                            <button type="button" class="btn btn-primary" onclick="appendRow(1)">新增</button>
                                                        </td>
                                                        <td>
                                                            <button type="button" class="btn btn-danger" onclick="removeRow(this)">删除</button>
                                                        </td>
                                                    </tr>
                                                    </tbody>
                                                </table>

                                            </div>
                                        </div>
                                    </div>
                                </div> -->


                            </div>
                        </div>



                        <input type="hidden" th:value="${checkedHospitalIds}" id="checkedHospitalIds">
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">合作医院</label>
                            <div class="col-sm-8">
                                <label th:each="hospital:${hospitalDOS}" class="checkbox-inline">
                                    <input name="hospitalId" type="checkbox" th:value="${hospital.id}"
                                           th:text="${hospital.name}">
                                </label>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/usabb/amenityCenter/add.js">
</script>
</body>
</html>
